package com.sikaryofficial.backend.service.points;

import com.sikaryofficial.backend.service.IPointsDetailStrategy;
import com.sikaryofficial.common.core.constant.PointRuleConstant;
import org.springframework.stereotype.Service;

/**
 * @author : qinjinyuan
 * @desc : 礼品兑换
 * @date : 2023/10/31 19:02
 */
@Service(value = PointRuleConstant.GIFT_REDEEM + IPointsDetailStrategy.SUFFIX)
public class GiftRedeemService extends AbstractPointService {
    /**
     * 更新积分明细数据
     *
     * @param sourceId
     * @param userId
     * @param pointsDetailValue
     * @return
     */
    @Override
    public boolean updatePointsByInputValue(Long sourceId, Long userId, Integer pointsDetailValue,String param, String sourceName) {
        return this.reducePoints(sourceId, userId, pointsDetailValue, param,sourceName);
    }


}
